package com.ruoyi.publish.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 法律条文对象 identify_legal_provisions
 *
 * @author 张泽望
 * @date 2020-11-02
 */
public class IdLegal extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;


    /**
     * 创建人工号
     */
//    @Excel(name = "创建人工号")
    private String createName;

    /**
     * 修改时间
     */
//    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 修改人工号
     */
//    @Excel(name = "修改人工号")
    private String updateName;

    /**
     * 标题
     */
    @Excel(name = "标题", width = 40)
    private String title;

    /**
     * 法律条文
     */
    @Excel(name = "法律条文", width = 90)
    private String legalContent;

    /**
     * 创建时间
     */
    //@Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    /**
     * 备用字段1
     */
//    @Excel(name = "备用字段1")
    private String by1;

    /**
     * 备用字段2
     */
//    @Excel(name = "备用字段2")
    private String by2;

    /**
     * 备用字段3
     */
//    @Excel(name = "备用字段3")
    private String by3;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "标题")
    public String getTitle() {
        return title;
    }

    public void setLegalContent(String legalContent) {
        this.legalContent = legalContent;
    }
    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "法律条文")
    public String getLegalContent() {
        return legalContent;
    }

    public void setBy1(String by1) {
        this.by1 = by1;
    }

    public String getBy1() {
        return by1;
    }

    public void setBy2(String by2) {
        this.by2 = by2;
    }

    public String getBy2() {
        return by2;
    }

    public void setBy3(String by3) {
        this.by3 = by3;
    }

    public String getBy3() {
        return by3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createDate", getCreateDate())
                .append("createName", getCreateName())
                .append("updateDate", getUpdateDate())
                .append("updateName", getUpdateName())
                .append("title", getTitle())
                .append("legalContent", getLegalContent())
                .append("by1", getBy1())
                .append("by2", getBy2())
                .append("by3", getBy3())
                .toString();
    }
}
